/*    */ package org.poebot.hal;
/*    */ 
/*    */ import java.util.ArrayList;
/*    */ import javax.swing.ListModel;
import javax.swing.event.ListDataListener;
/*    */ 
/*    */ public class ChatListModel
/*    */   implements ListModel
/*    */ {
/* 43 */   private ArrayList<String> visibleArray = new ArrayList<String>(300);
/*    */ 
/*    */   public void addListDataListener(ListDataListener arg0)
/*    */   {
/*    */   }
/*    */ 
/*    */   public Object getElementAt(int index)
/*    */   {
/* 16 */     return this.visibleArray.get(index);
/*    */   }
/*    */ 
/*    */   public void addEntry(String text)
/*    */   {
/* 21 */     if (this.visibleArray.size() == 300) {
/* 22 */       this.visibleArray.remove(0);
/*    */     }
/* 24 */     this.visibleArray.add(text);
/*    */   }
/*    */ 
/*    */   public void clear()
/*    */   {
/* 29 */     this.visibleArray.clear();
/*    */   }
/*    */ 
/*    */   public int getSize()
/*    */   {
/* 35 */     return this.visibleArray.size();
/*    */   }
/*    */ 
/*    */   public void removeListDataListener(ListDataListener arg0)
/*    */   {
/*    */   }
/*    */ }

/* Location:           C:\workspace\dognuts\dognuts\dognuts.jar
 * Qualified Name:     org.dognuts.gui.ChatListModel
 * JD-Core Version:    0.6.0
 */